<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	
	<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	
	<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
	
	<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
	
	<title>后台管理</title>
	
</head>

<body class="body_ifm">
	
	<div id="subboxdiv" style="width:100%;height:100%;display:none;position:absolute;"></div>
	
	<div class="infoboxp">
		<div class="admin_new_tip">
			<a href="javascript:;" class="admin_new_tip_close"></a>
			<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
			<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
			<div class="admin_new_tip_list_cont">
				<div class="admin_new_tip_list">该页面展示了短信模板设置 。</div>
			</div>
		</div>
		
		<div class="infoboxp_top mt10">
			<h6>短信模板设置</h6> 
		</div>
		
		<div class="main_tag">
			<div class="tag_box" style="float:none;">
				<div>
					{yun:}assign var=name value=$smarty.get.name{/yun}
					<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
					<form action="" method="post" target="supportiframe">
						
						<input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">	
						<input type="hidden" name="name" value="{yun:}$name{/yun}"/>
					
						<table width="100%" class="table_form">
							<tr>
								<th width="150">模板页面：</th>
								<td>{yun:}$arr_tpl[$name].name{/yun}</td>
							</tr>
    
							{yun:}if $arr_tpl[$name].type=="email"{/yun}
							<tr class="email">
								<th width="150">标题：</th>
								<td>
						        	<input class="input-text" type="text" name="title" id="title" value="{yun:}$row.title{/yun}" size="60"/>
						        </td>
							</tr>
							<tr class="email">
								<th width="150">内容：</th>
								<td>
						        	<textarea name="content" id="content" class="text" style="width:700px;height:200px;">{yun:}$row.content{/yun}</textarea>
						        </td>
							</tr>
						    {yun:}else{/yun}
						    	<tr class="email">
								<th width="150">内容：</th>
								<td><textarea name="content" rows="10" cols="80" class="text">{yun:}$row.content{/yun}</textarea><span class="admin_web_tip">60字以内</span></td>
							</tr>
						    {yun:}/if{/yun}
							<tr>
								<td></td>
								<td align="left"><input class="admin_button" id="mconfig" type="submit" name="config" value="提交" />&nbsp;&nbsp;<input class="admin_button" type="reset" value="重置" /></td>
 							</tr>
						</table>
					</form>
				</div>
			</div>
		</div>

		<div class="infoboxp" style="background:#F7FBFC;border:1px solid #d8dce5">
			<div class="infoboxp_top">
				<a name="sm"></a>
				<h6 style="text-indent:10px;">调用说明</h6>
			</div>
			<ul>
			{yun:}foreach from=$arr_tpl[$name] key=k item=v{/yun}
				{yun:}if $k!="name" && $k!="type"{/yun}
					<li style="height:25px; margin-top:5px; padding-left:10px;">
						<span style="width:150px;display:block; float:left;">{yun:}$v{/yun}</span>   
						<span style="width:150px;display:block; float:left;">代码：{yun:}$k{/yun}</span> 
					</li>
			    {yun:}/if{/yun}
			{yun:}/foreach{/yun}
			</ul>
		</div>
	</div>
	<script>
		(function($){                
			 $('.getname').click(function(){
				$('#title').insertAtCaret($(this).attr("name"));
			 });
			  $('.getname2').click(function(){
				$('#contentddd').insertAtCaret($(this).attr("name"));
			 });
		})($); 
	</script>
</body>
</html>